#include "petanque.h"

void Petanque::miseAJour(){
    portee= 3.0 + niveau;
    force=15*(pow(niveau,1.5));
    cercle.setRect((-portee*(600.0/16)+600/32),(-portee*(600.0/16)+600/32),(2*portee*(600.0/16)),(2*portee*(600.0/16)));
    forceinit = 15*(pow(niveau,1.5));
}
int Petanque::ameliorer(int credit){
    int i = Defense::ameliorer(credit);
    if (i!=0){
        miseAJour();
    }
    return i;
}
